package study.domain.user;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import lombok.Data;

import com.barney.support.domain.HasCreatedDate;

/**
 * 역활
 *
 * @author Barney Kim
 */
@Entity(name = "roles")
@Data
public class Role implements Serializable, HasCreatedDate {

	private static final long serialVersionUID = -7111219647721443428L;

	@Id
	@Column(length = 50, nullable = false)
	private String role;

	@Column(length = 50, nullable = false)
	private String roleName;

	@Column(length = 100, nullable = false)
	private String description;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(nullable = false, updatable = false)
	private Date createdDate;

	public Role() {
	}

	public Role(String role) {
		this.role = role;
	}
}
